<?php
/**
 * @version $Id: admin.extensionicons2.html.php 274 2007-12-06 22:59:07Z nik.elkuku $
 * repo $URL: http://joomla-codebase.googlecode.com/svn/trunk/extensionicons2/administrator/components/com_extensionicons2/admin.extensionicons2.html.php $
 * Created on 14.04.2007
 * @package ExtensionIcons2
 * @author Nikolai Plath (elkuku)
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

class HTML_ExtensionIcons
{

	function listItems( $option, &$rows, &$pageNav )
	{
	   $number = count($rows);
	   global $mainframe;
  		JHTML::_('behavior.tooltip');//1.5b2

//	   		jimport('joomla.html.tooltips');
	/*
echo "lang:".$mainframe->getCfg('lang');
echo '<hr />';
echo "live:".$mainframe->getCfg('live_site');
echo '<hr />';
echo JPATH_ADMINISTRATOR;
echo '<hr />';
*/
/*
	echo '
      <script language="javascript" type="text/javascript">
         function submitbutton(pressbutton) {
           var form = document.adminForm;
           if (pressbutton == "cancel") {
              submitform( pressbutton );
              return;
           }
           submitform( pressbutton );
        }
     </script>';
*/
    ?>
    <h2><img src="images/credits.png" alt="ExtensionIcons 2 Logo" />Extension Icons 2</h2>
    <form action="index2.php" method="post" name="adminForm">
      <table class="adminlist">
      	<thead>
       <tr align="left">
        <th width="20">
         <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?>);"/>
        </th>
        <th align="left" width="20"><?php echo JText::_('exticon'); ?></th>
        <th class="title" colspan="2"><?php echo JText::_('Component'); ?></th>
        <th><?php echo JText::_('Action'); ?></th>
        <th align="center" width="20"><?php echo JText::_('Access key'); ?></th>
        <th align="left" width="20" colspan="2"><?php echo JText::_('Sort'); ?></th>
        <th align="center" width="20"><?php echo JText::_('Published'); ?></th>
       </tr>
      	</thead>
		<tbody>

<?php
        $cnt = 0;

		for ($i=0, $n=$number; $i < $n; $i++) {

			$row = $rows[$i];
//dump ($row);
			$evenodd = $i % 2;

//    	    $task 	= $row->published ? 'unpublish' : 'publish';
//			$img 	= $row->published ? 'publish_g.png' : 'publish_x.png';
//			$alt 	= $row->published ? 'Published' : 'Unpublished';

			//$checked 	= JCommonHTML::CheckedOutProcessing( $row, $i );//J1.5
			//$published 	= JCommonHTML::PublishedProcessing( $row, $i );//J1.5
				$checked 	= JHTML::_('grid.checkedout',   $row, $i );//J1.5b2
//				$access 	= JHTML::_('grid.access',   $row, $i );
				$published 	= JHTML::_('grid.published', $row, $i );//J1.5b2

  			echo '
      <tr class="row'.$evenodd.'">
       <td>' . $checked . '</td>
       <td><img src="../includes/' . $row->admin_menu_img . '" /></td>
       <td width="100">' . $row->parent_name .'</td>' .
       	'<td>'

		.'<span class="editlinktip hasTip" title="<strong>'. JText::_( 'Edit' ) . '</strong>: <img src=\'../includes/' . $row->admin_menu_img . '\' />';
 			if ($row->parent_name) echo $row->parent_name.' - ';

	echo $row->name .'<br />'.$row->admin_menu_alt.'">'
        . '<a href="#edit" onclick="return listItemTask(\'cb'.$i.'\',\'edit\')">'
        .$row->name.'</a>'
		. '</td>'
		. '<td>'
		.'<span class="hasTip" title="'.$row->admin_menu_link.'">'
		.'<img src="../includes/js/ThemeOffice/query.png" />'
		. $row->linkoption .'</span></td>'
		.'<td align="center">'.$row->access_key.'</td>'
    	.'<td class="order" colspan="2">';

	echo $pageNav->orderUpIcon( $i, (@$row->catid == @$rows[$i-1]->catid) );
	echo $pageNav->orderDownIcon( $i, $n, (@$row->catid == @$rows[$i+1]->catid) );

	echo '</td>';
	echo '<td align="center">';

	echo $published;

    //echo '<a href="javascript: void(0);" onclick="return listItemTask(\'cb'. $i .'\',\'' . $task . '\')">
	//	<img src="images/' . $img . '" width="12" height="12" border="0" alt="' . $alt . '" /></a>';

    echo '</td></tr>';

    }//fornext
?>

	</tbody>
      	<tfoot>
      		<td colspan="8">
      		<?php	echo $pageNav->getListFooter(); ?>
			</td>
		</tfoot>
 .
  	 </table>
      <input type="hidden" name="option"
             value="<?php echo $option; ?>" />
      <input type="hidden" name="task" value="" />
      <input type="hidden" name="boxchecked" value="0" />
     </form>
<?php
     }//function

	function edit( $option, &$row )
	{
		global $mosConfig_live_site, $mosConfig_absolute_path, $mosConfig_lang;
		JHTML::_('behavior.tooltip');//1.5b2
		
		// set the title
		$_title = '';
		if ($row->name)
		{
			$_title .=( $row->parent_name ) ? $row->parent_name.' - '.$row->name : $row->name;
			$_title .= ' <img src="../includes/' . $row->admin_menu_img . '" />';
		} else
		{
			$_title .= JText::_('_EXICONS_NEW_ITEM');
		}
		
  ?>

  		<script language="javascript" type="text/javascript">
        function submitbutton(pressbutton) {
           var form = document.adminForm;
           if (pressbutton == "cancel") {
              submitform( pressbutton );
              return;
           }
           submitform( pressbutton );
        }
     	</script>
      <form action="index2.php" method="post" name="adminForm" id="adminForm" class="adminForm">';

			<table class="adminheading">
				<tr>
					<th><?php echo JText::_('EXICONS_TIT_EDIT'); ?> : <small><?php echo $_title; ?></small></th>
				</tr>
			</table>
			<table>
				<tr>
					<td>
						<?php
						echo HTML_ExtensionIcons::_getSystemIcons( $row );
						echo HTML_ExtensionIcons::_getCustomIcons( $row );
						?>
					</td>
					<td>
						<table>
							<tr>
								<td style="text-align:right">
									<span class="editlinktip hasTip" title="<?php echo JText::_('EXICONS_TOO_NAME' ); ?>" >
										<strong><?php echo JText::_('EXICONS_TIT_NAME'); ?></strong><br />
									</span>
								</td>
								<td>
									<input type="text" name="name" value="<?php echo $row->name; ?>" />
								</td>
							</tr>
							<tr>
								<td style="text-align:right">
									<strong><?php echo JText::_('EXICONS_TIT_MENUALT'); ?> : </strong><br />
									<span class="editlinktip hasTip" title="<?php echo JText::_('EXICONS_TOO_MENUALT' ); ?>"></span>
								</td>
								<td>
									<input type="text" name="admin_menu_alt" value="<?php echo $row->admin_menu_alt; ?>" />
								</td>
							</tr>
<?php
$output .=	NL.'<tr><td style="text-align:right">' .
		'<strong>' . JText::_('EXICONS_TIT_OPTION') . ' :</strong><br />'.
		'<span class="editlinktip hasTip" title="'.JText::_('EXICONS_TOO_OPTION' ) .'">'.
		'</td><td><input type="text" name="linkoption" value="' .
		 $row->linkoption . '" />' .
		 '</td></tr>';

$output .=	NL.'<tr><td style="text-align:right">' .
		'<strong>' . JText::_('EXICONS_TIT_MENULINK') . ' :</strong><br />'.
		'<span class="editlinktip hasTip" title="'.JText::_('EXICONS_TOO_MENULINK' ) .'">'.
		'</td><td><input type="text" name="admin_menu_link" size="50" value="' .
		 $row->admin_menu_link . '" />' .
		 '</td></tr>';

$output .=	NL.'<tr><td style="text-align:right">' .
		'<strong>' . JText::_('EXICONS_TIT_ACCESS_KEY') . ' :</strong><br />'.
		'<span class="editlinktip hasTip" title="'.JText::_('EXICONS_TOO_ACCESS_KEY' ) .'">'.
		'</td><td><input type="text" name="access_key" size="1" value="' .
		 $row->access_key . '" />' .
		 '</td></tr>';

#$output .= 	'<tr><td colspan="2"><hr /></td></tr>';

$output .= 	NL.'<tr>'
			. '<td style="text-align:right"><strong>'.JText::_('EXICONS_TIT_PUBLISHED').':</strong></td>'
			. '<td>'
			//. JHTMLSelect::booleanlist( 'published', 'class="inputbox"', $row->published )//TODO FIXME
			. '</td>'
		. '</tr>';

$output .= 	NL.'</table>';

$output .= 	NL.NL.'</td></tr></table>';

$output .=	'<input type="hidden" name="id" value="' . $row->id . '" />
	    <input type="hidden" name="option" value="' . $option . '" />
   		<input type="hidden" name="task" value="" />
   '.NL.'</form>';
   echo $output;
 }//function

	/**
	 * List Icons in /includes/js/ThemeOffice
	 */
	function _getSystemIcons( $row )
	{
	
	$line = '';
	$line .= NL.'<!-- systemicons -->';
	$line .= NL.'<table class="adminform">';
	$line .=  NL.TB.'<tr valign="top">'
 				.NL.TB.TB.'<td style="text-align:right">'
// 		.'<img src="'.$mosConfig_live_site . '/includes/' . $row->admin_menu_img . '" />

		.'<span class="editlinktip hasTip" title="'.JText::_('_EXICONS_TOO_ICON').'"><strong>'.JText::_('_EXICONS_TIT_ICON').':</strong></span>'
 		//. mostooltip( _EXICONS_TOO_ICON ) .
					.'</td>' .
			NL.TB.	'</tr>' .
			 NL.	'</table>';
# 		.'<td>';// .

$Pfad = '../includes/js/ThemeOffice/';
$sPfad = '../includes/js/ThemeOffice/';
$DD = dir($Pfad);
$icon_count = 0;
$icon_max   = 5;

$line .=   NL.'<table><tr><td>';
while (false !== ($entry = $DD->read()))
{
     if($entry != '.' && $entry != '..'
     	&& substr ($entry, strlen ($entry) -3) == 'png'
     	&& $entry != 'spacer.png'
     	&& $entry != 'blank.png')
     {
        $line .=   NL.'<label><input type="radio" name="admin_menu_img" value="js/ThemeOffice/' . $entry . '"';
       	if ('js/ThemeOffice/' . $entry == $row->admin_menu_img)
       	{
       		$line .=  'checked="checked"';
       	}
        $line .= 		' />';
        $line .=    NL.'<img src="'.$sPfad . $entry . '" />';
		$line .=   '</label><br /><br />';
		$icon_count += 1;
     }
     if ( $icon_count == $icon_max )
     {
     	$line .=  '</td><td>';
     	$icon_count = 0;
     }
}//while
$line .=   NL.'</td></tr>'
. NL. '</table>';

		return $line;
	}// function


/**
 * List images in custom_dir /images/exicons
 */
function _getCustomIcons( $row )
{
	

$Pfad = '../images/ExtensionIcons_custom/';
$sPfad = '/images/ExtensionIcons_custom/';
$output = '';
	$output .= NL.'<!-- customicons -->';
$output .= '<table><tr valign="top">'.
 		'<td style="text-align:right">' .
 		'<span class="editlinktip hasTip" title="'.JText::_('EXICONS_TOO_ICON_PATH' ) .'">'.
		'<strong>'.JText::_('EXICONS_TIT_ICON_PATH').':</strong>'.
 		'<br />' .
 		$Pfad.
		'</span>'.
// 		.'<img src="'.$mosConfig_live_site . '/includes/' . $row->admin_menu_img . '" />
		'</td>' .
		'</tr>' .
		'</table>';
$output .= '<table><tr><td>';

if (is_dir($Pfad))
{
	$DD = dir($Pfad);
	$icon_count = 0;
	$iconTotal = 0;
	$icon_max   = 5;//number of icons to display: down
	while (false !== ($entry = $DD->read()))
	{
     	if($entry != '.' && $entry != '..'
	     	&& substr ($entry, strlen ($entry) -3) == 'png'
     		&& $entry != 'spacer.png'
     		&& $entry != 'blank.png')
     	{
	        $output .= '<label><input type="radio" name="admin_menu_img" value="'.$Pfad . $entry . '"';
       		if ( $Pfad . $entry == $row->admin_menu_img )
       		{
	       		$output .= 'checked="checked"';
       		}
        	$output .=		' />';
        	$output .= '<img src="'.JURI::root() . $sPfad . $entry . '" />';
			$output .= '</label><br /><br />';
			$icon_count += 1;
			$iconTotal+=1;
     	}
     	if ( $icon_count == $icon_max )
     	{
	     	$output .= '</td><td>';
     		$icon_count = 0;
     	}
  	}//while
  	if ( $iconTotal == 0 )
  	{
  		$output .= JText::_('EXICONS_NO_FILES_IN_DIR');
  	}
  	
} else
{
	$output .= JText::_('EXICONS_DIR_NO_EXISTS');
}//if is_dir
  	$output .=   NL.'</td></tr>'
. NL. '</table>';

	return $output;
}// function

/*
 function help ( $option , $AppVersion )
 {
 /*
 global $mosConfig_absolute_path, $mosConfig_lang;

	if (file_exists ($mosConfig_absolute_path.'/administrator/components/com_extensionicons/language/help_'.$mosConfig_lang.'.php'))
	{
		require_once ($mosConfig_absolute_path.'/administrator/components/com_extensionicons/language/help_'.$mosConfig_lang.'.php');
	} else
	{
		require_once ($mosConfig_absolute_path.'/administrator/components/com_extensionicons/language/help_english.php');
	}
	*/
/*	HTML_ExtensionIcons::printFooter( $AppVersion );
 }
*/

/**
 * Edit Config
 */
/*	<params>
		<param name="showdiv" type="radio" default="1" label="Show with DIV" description="Select whether to show the DIV">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>

		<param name="showtooltipsexicons" type="radio" default="0" label="Tooltips" description="Select whether to show Tooltips for ExtensionIcons">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>

		<param name="showunread" type="radio" default="0" label="Unread Messages" description="Select whether to show Unread Messages">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>

		<param name="showonlineusers" type="radio" default="0" label="Online users" description="Select whether to show Online users">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>

		<param name="showlogoutlevel" type="list" default="0" label="Logout" description="Select whether to show The logout as text or just as an icon">
			<option value="0">Hide</option>
			<option value="1">Show Icon</option>
			<option value="2">Show text</option>
			<option value="3">Show both</option>
		</param>

		<param name="spacerchar" type="text" default="|" size="1" label="Spacer Char" description="The character for separating the icons"/>

		<param name="showexternalpreview" type="radio" default="0" label="External Preview" description="Select whether to show an external preview">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>

		<param name="@spacer" type="spacer" default="" label="" description="" />

		<param name="showfreediskspace" type="radio" default="0" label="Free Disk Space" description="Select whether to show Free Disk Space">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>
        <param name="freediskspaceunit" type="radio" default="mb" label="Units" description="In which unit show free disk space">
            <option value="mb">MB</option>
            <option value="gb">GB</option>
        </param>
		<param name="showfreediskspacetext" type="radio" default="1" label="Show text" description="Select whether to show text">
			<option value="0">Tooltip only</option>
			<option value="1">Tooltip and text</option>
		</param>

		<param name="@spacer" type="spacer" default="" label="" description="" />

		<param name="showloadvalues" type="radio" default="0" label="Load Values" description="Select whether to show Load Values">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>
		<param name="showloadvaluestext" type="radio" default="1" label="Show text" description="Select whether to show text">
			<option value="0">Tooltip only</option>
			<option value="1">Tooltip and text</option>
		</param>

		<param name="@spacer" type="spacer" default="" label="" description="" />

		<param name="showmemoryusage" type="radio" default="0" label="Memory Usage" description="Select whether to show Memory usage">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>
		<param name="usedmem" type="radio" default="1" label="Used" description="Shows amount of used memory in kB">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>
		<param name="freemem" type="radio" default="1" label="Free" description="Shows amount of free memory in kB">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>
		<param name="showmemoryusagetext" type="radio" default="1" label="Show text" description="Select whether to show text">
			<option value="0">Tooltip only</option>
			<option value="1">Tooltip and text</option>
		</param>

	</params>
*/
function editConfig ( $option, $config )
{
print_r($config);
	JHTML::_('behavior.tooltip');//1.5b2
	require_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_extensionicons2'.DS.'includes'.DS.'easytoolbar2.js');

?>
	<form action="index2.php" method="post" name="adminForm" id="adminForm" class="adminForm">
      <table class="adminlist">
      	<thead>
       <tr>
        <th align="left" width="20"><?php echo JText::_('Common settings'); ?></th>
        <th align="center" width="20"><?php echo JText::_('Unread messages'); ?></th>
        <th align="center" width="20"><?php echo JText::_('Online users'); ?></th>
        <th align="center" width="20"><?php echo JText::_('External preview'); ?></th>
        <th align="center" width="20"><?php echo JText::_('Free disk space'); ?></th>
        <th align="center" width="20"><?php echo JText::_('Load values'); ?></th>
        <th align="center" width="20"><?php echo JText::_('Memory usage'); ?></th>
        <th align="center" width="20"><?php echo JText::_('Log out'); ?></th>
       </tr>
      	</thead>
		<tbody>
    <tr>
      <td>
      	<table>
      		<tr valign="top"><th><?php echo JText::_('Tooltips and icons'); ?><th><tr>
      		<tr>
      			<?php HTML_ExtensionIcons::_cfg_Tooltips($config); ?>
      		</tr> 
      		<tr><th><?php echo JText::_('Spacer'); ?><th><tr>
      		<tr>
      			<td>
					aaa
      			</td>
      		</tr> 
      	</table>
      </td>
      <?php  HTML_ExtensionIcons::_cfg_UnreadMessages ( $config ); ?>
      	<?php echo HTML_ExtensionIcons::__displayYESNO( 'onlineusers', $config ); ?>
      	<?php echo HTML_ExtensionIcons::__displayYESNO( 'extpreview', $config ); ?>
      	<?php


      	$lst_opts = array();
      	$lst_opts[] = JText::_('Tooltip only');
      	$lst_opts[] = JText::_('Tooltip and Text');
      	$cst_div = 'hallo welt';
      	echo HTML_ExtensionIcons::__displayYESNO( 'freedisk', $config, $lst_opts, $cst_div );
      	  ?>
      	<?php echo HTML_ExtensionIcons::__displayYESNO( 'loadvalues', $config ); ?>
  			<?php echo HTML_ExtensionIcons::__displayYESNO( 'memusage', $config ); ?>	
         <?php HTML_ExtensionIcons::_cfg_Logout($config); ?>

    </tr>


  </table>
	    <input type="hidden" name="option" value="<?php echo $option; ?>" />
   		<input type="hidden" name="task" value="" />
   		<input type="hidden" name="task2" value="saveconfig" />
  
  </form>

<?php
	return;
	}

	/**
	 * 
	 * Config helper functions
	 * 
	 */
	
	/**
	 * tooltips
	 */
	function _cfg_Tooltips ( $config )
	{
		?>
		  <td>
      	<select name="showtooltips">
				<?php $selected =( $config['showtooltips'] == '0' ) ? ' selected="selected"' : ''; ?>
				<option value="0"<?php echo $selected.'>'.JText::_('Do NOT show tooltips'); ?></option>
				<?php $selected =( $config['showtooltips'] == '1' ) ? ' selected="selected"' : ''; ?>
				<option value="1"<?php echo $selected.'>'.JText::_('Show tooltips'); ?></option>
				<?php $selected =( $config['showtooltips'] == '2' ) ? ' selected="selected"' : ''; ?>
				<option value="2"<?php echo $selected.'>'.JText::_('Text only (NO icons)'); ?></option>
			</select>
      </td>
		<?php	
	}

	/**
	 * unread messages
	 */
	function _cfg_UnreadMessages ( $config )
	{
		?>
		  <td>
      	<select name="unreadmessages">
				<?php $selected =( $config['unreadmessages'] == '0' ) ? ' selected="selected"' : ''; ?>
				<option value="0"<?php echo $selected.'>'.JText::_('Do NOT show'); ?></option>
				<?php $selected =( $config['unreadmessages'] == '1' ) ? ' selected="selected"' : ''; ?>
				<option value="1"<?php echo $selected.'>'.JText::_('Show'); ?></option>
			</select>
      </td>
		<?php	
	}

	/**
	 * online users
	 */
	function _cfg_OnlineUsers ( $config )
	{
		?>
		  <td>
      	<select name="onlineusers">
				<?php $selected =( $config['onlineusers'] == '0' ) ? ' selected="selected"' : ''; ?>
				<option value="0"<?php echo $selected.'>'.JText::_('Do NOT show'); ?></option>
				<?php $selected =( $config['onlineusers'] == '1' ) ? ' selected="selected"' : ''; ?>
				<option value="1"<?php echo $selected.'>'.JText::_('Show'); ?></option>
			</select>
      </td>
		<?php	
	}
	
	/**
	 * selection list
	 */
	function __displayYESNO ( $name, $config, $custom_lst_opts = NULL, $custom_DIV = NULL )
	{
		$selected =( $config[$name] == '0' ) ? ' selected="selected"' : '';
		$on_change =( $custom_DIV ) ? ' onchange=" check_fields(\''.$name.'\', \'options_'.$name.'\');' : '';
		
		$output = '';
		$output .= NL.'<td>';
      $output .= '<input type="text" name="test'.$name.'" />';
      $output .= NL.TB.'<select name="'.$name.'"'.$on_change.'">';
		$output .= NL.TB.TB.'<option value="0"'.$selected.'>'.JText::_('Do NOT show').'</option>';
		if( $custom_lst_opts )
		{
			$cnt = 1;
			foreach( $custom_lst_opts as $opt )
			{
				$selected =( $config[$name] == $cnt ) ? ' selected="selected"' : '';
				$output .= NL.TB.'<option value="'.$cnt.'"'.$selected.'>'.JText::_($opt).'</option>';
			}// foreach
		} else
		{
			$selected =( $config[$name] == '1' ) ? ' selected="selected"' : '';
			$output .= NL.TB.'<option value="1"'.$selected.'>'.JText::_('Show').'</option>';
		}
		$output .= NL.'</select>';
		$output .=( $custom_DIV ) ? NL.TB.'<div name="options_'.$name.'">'.$custom_DIV.'</div>' : '';
      $output .= NL.'</td>';

      return $output;
	}// function

	/**
	 * Log out
	 */
	function _cfg_Logout ( $config )
	{
      ?>
      <td>
      	<select name="logout">
				<?php $selected =( $config['logout'] == '0' ) ? ' selected="selected"' : ''; ?>
				<option value="0"<?php echo $selected.'>'.JText::_('Hide Log out'); ?></option>
				<?php $selected =( $config['logout'] == '1' ) ? ' selected="selected"' : ''; ?>
				<option value="1"<?php echo $selected.'>'.JText::_('Show icon'); ?></option>
				<?php $selected =( $config['logout'] == '2' ) ? ' selected="selected"' : ''; ?>
				<option value="2"<?php echo $selected.'>'.JText::_('Show text'); ?></option>
				<?php $selected =( $config['logout'] == '3' ) ? ' selected="selected"' : ''; ?>
				<option value="3"<?php echo $selected.'>'.JText::_('Show both'); ?></option>
			</select>
      </td>
      <?php
		
	}// function

	/**
	 * Print the footer
	 */
	function printFooter ( $config )
	{
		$style = ' style="text-align: center; padding: 3px; background-color: #F2FFFF; border-bottom: 3px solid #E5F2F2; border-top: 3px solid #E5F2F2;"';
		echo '<div'.$style.'>' . $config['APP_Name'].'&nbsp;&nbsp;'.$config['APP_Version'] . ' - ' . JText::_('EXICONS_GREETZ_NIK') . ' <a href="http://www.nik-it.de">NiK-IT.de</a></div>';
	}//function

}// class
?>
